import {
  MessageOutlined,
  ToolOutlined,
  BankOutlined,
  CalculatorOutlined,
  GlobalOutlined,
  AlertOutlined,
  HomeOutlined,
} from '@ant-design/icons';

import Home from '@src/views/Home';
import Leads from '@src/views/Leads';
import TreasureBox from '@src/views/TreasureBox';
import Market from '@src/views/Market';
import Profile from '@src/views/Profile';
import Supplier from '@src/views/Supplier';
import Member from "../views/Member";
import Price from "../views/Price";
import CompanyInfo from '@src/views/CompanyInfo';
import ContactUS from '@src/views/ContactUS';
import Invite from "@src/views/Invite";
import Area from "@src/views/Area";
import Trend from "@src/views/Trend";
import PriceCompare from "@src/views/PriceCompare";

const routes = [
  {
    title: 'Dialogue',
    icon: <MessageOutlined />,
    link: '/home',
    component: <Home />,
    auth:'view_home'
  },
  {
    title: 'Treasure Box',
    icon: <ToolOutlined />,
    link: '/treasureBox',
    component: <TreasureBox />,
    auth:'view_treasureBox'
  },
  {
    title: 'Market',
    icon: <BankOutlined />,
    link: '/PriceCompare',
    component: <PriceCompare />,
    auth:'view_market'
  },
  {
    title: 'Price Estimation',
    icon: <CalculatorOutlined />,
    link: '/Trend',
    component: <Trend />,
    auth:'view_price'
  },
  {
    title: 'Supplier',
    icon: <GlobalOutlined />,
    link: '/Area',
    component: <Area />,
    auth:'view_supplier'
  },
  {
    title: 'Company Introduction',
    link: '/supplier-company',
    menuHidden: true,
    component: <CompanyInfo />,
  },
  {
    title: 'Market clues',
    icon: <AlertOutlined />,
    link: '/leads',
    component: <Leads />,
    auth:'view_leads'
  },
  {
    title: 'Sign up for membership',
    icon: <AlertOutlined />,
    link: '/member',
    component: <Member />,
    auth:'view_invite'
  },
  {
    title: 'Personal Center',
    icon: <HomeOutlined />,
    link: '/profile',
    component: <Profile />,
    auth:'view_personal_center'
  },
  {
    title: 'Contact Us',
    link: '/ContactUS',
    menuHidden: true,
    component:  <ContactUS />
  },
  {
    title: 'Invited',
    link: '/invite',
    menuHidden: true,
    component:  <Invite />
  },
  {
    title: 'Language',
    link: '',
    menuHidden: false,
    auth:'view_home'
  },
];

export default routes;
